<script src="/js/common.js" type="text/javascript" ></script>
<script src="/js/academico/maquinaalumno/vmaction.js" type="text/javascript" ></script>
<style>
    .user-row {
        margin-bottom: 14px;
    }

    .user-row:last-child {
        margin-bottom: 0;
    }

    .dropdown-user {
        margin: 13px 0;
        padding: 5px;
        height: 100%;
    }

    .dropdown-user:hover {
        cursor: pointer;
    }

    .table-user-information > tbody > tr {
        border-top: 1px solid rgb(221, 221, 221);
    }

    .table-user-information > tbody > tr:first-child {
        border-top: 0;
    }


    .table-user-information > tbody > tr > td {
        border-top: 0;
    }
</style>
<input id="codigo_vm" type="hidden" name="opcion" value="<?php echo $this->codigo_vm; ?>">
<h2>Maquinas Virtuales</h2>
<br />

<div class="row user-infos cyruxx" style="display: block;">
    <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 col-xs-offset-0 col-sm-offset-0 col-md-offset-1 col-lg-offset-1">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title"><?php echo $this->displayname; ?></h3>
            </div>
            <div class="panel-body">
                <div class="row">                        
                    <div class="col-md-3 col-lg-3 text-center">
                        <img alt="Maquina Virtual" src="<?php echo $this->baseUrl() . "/images/computer.jpg" ?>" class="img-circle" style="margin-top: 10px">
                    </div>                        
                    <div class=" col-md-9 col-lg-9">                            
                        <table class="table table-user-information">
                            <tbody>
                                <tr>
                                    <td>Lab:</td>
                                    <td><?php echo $this->nombreLaboratorio; ?></td>
                                </tr>
                                <tr>
                                    <td>Estado Actual:</td>
                                    <td><label id="lbl-estado"><?php echo $this->state; ?></span></td>
                                </tr>
                                <tr>
                                    <td>Sistema Operativo:</td>
                                    <td><?php echo $this->templatename; ?></td>
                                </tr>
                                <tr>
                                    <td>CPU:</td>
                                    <td><?php echo $this->cpuNumber; ?> de <?php echo $this->cpuSpeed; ?> MHz</td>
                                </tr>
                                <tr>
                                    <td>Memoria:</td>
                                    <td><?php echo $this->memory; ?> MB</td>
                                </tr>
                                <tr>
                                    <td>Direccion IP:</td>
                                    <td><?php echo $this->ip; ?></td>
                                </tr>                                    
                                <tr>
                                    <td>Mascara de red:</td>
                                    <td><?php echo $this->netmask; ?></td>
                                </tr>                                                                      
                                <tr>
                                    <td>Dias de Encendido:</td>
                                    <td><?php echo $this->dias; ?></td>
                                </tr>
                                <tr>
                                    <td>Hora Inicial: <?php echo $this->horaInicioDia; ?></td>
                                    <td>Hora Final: <?php echo $this->horaFinDia; ?></td>                                    
                                </tr>
<!--                                <tr>
                                    <td>Horas Diarias: <?php echo $this->horasDiarias; ?></td>
                                    <td>horas Curso: <?php echo $this->horasCurso; ?></td>
                                </tr>                               -->
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="panel-footer">                    
                <button id="btn-consola" data-original-title="Consola" data-toggle="tooltip" type="button" class="btn btn-sm btn-primary" >Consola VM...</i></button>
                <span class="pull-right">                           
                    <button id="btn-encender" data-original-title="Encender Maquina Virtual" data-toggle="tooltip" type="button" class="btn btn-sm btn-success text-center" >Encender</button>
                    <button id="btn-apagar" data-original-title="Apagar Maquina Virtual" data-toggle="tooltip" type="button" class="btn btn-sm btn-danger text-center" >Apagar</button>
                </span>
            </div>
        </div>
        <div id="div-alert">
        </div>
    </div>
</div>
